package cn.exrick.xboot.common.activeMQ;

import java.io.FileInputStream;
import java.util.Properties;

/**
 * 从配置文件中动态取出子系统的链接地址前半部分
 */
public class SystemUrl {
    public static Properties prop = getProperties();

    public static Properties getProperties() {
        Properties prop = new Properties();
        try {
            FileInputStream file = new FileInputStream("src/main/resources/urlSource.properties");
            prop.load(file);
            file.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return prop;
    }

}

